<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<%@ taglib prefix="sec"
	uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html> 
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ko" lang="ko">
<head>
	<title>MOIM</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<script src="resources/jquery-1.9.1.min.js"></script>
	<script src="resources/jquery.mobile-1.3.0.min.js"></script>

	<link type="text/css" rel="stylesheet" href="resources/style.css" />
</head>
<body>

<div data-role="page" data-theme="z" id="login">
	<div data-role="header" data-theme="z">
		<a href="main.jsp" data-role="button" data-icon="home" data-iconpos="notext"></a>
		<h2>MOIM</h2>
		<div class="ui-btn-right" data-role="controlgroup" data-type="horizontal">
			<a href="board.html" data-role="button" data-icon="star">게시판</a> 
			<a href="square.jsp" data-role="button" data-icon="star">광장</a>
		</div>
	</div>
	
	<div data-role="content">
		<form action="<c:url value='/j_spring_security_check'/>" method="post">
		<!-- <form action="moim/user/login" method="post"> -->
			<div>
				
			<c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
			<c:remove var="SPRING_SECURITY_LAST_EXCEPTION" scope="session" />
			</div>
			<fieldset data-role="controlgroup" data-inset="true">
			<input type="text" name="j_username" id="j_username" placeholder="아이디" />
			<input type="password" name="j_password" id="j_password" placeholder="패스워드" />
			</fieldset>
			<a href="/moimserver/moim/signup" id="signup" data-role="button">회원가입</a>
			<input type="submit" name="login_btn" id="login_btn" value="로그인" />
			<input id="_spring_security_remember_me"
						name="_spring_security_remember_me" type="checkbox" value="true" />
			<label class="remember_me" for="_spring_security_remember_me">로그인 유지</label>
		</form>
	</div>
</div>


</body>
</html>
